package com.scau.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.scau.pojo.Section;
import com.scau.service.SectionService;

@RestController
@RequestMapping("/sectionController")
public class SectionController{

	@Autowired
	SectionService sectionService;
	
	@RequestMapping("/query")
	public List<Section> query() {
		return sectionService.query();
	}

}
